<?php
namespace app\home\controller;

use think\Controller;
use think\facade\Cookie;
class BaseController extends Controller {
    protected function initialize()
    {
        if (!Cookie::has('userid')) {
            exit('登录效果失效');
        }
    }
}